package com.example.demo.create.factory.entity;

import com.example.demo.create.factory.intf.Food;
import lombok.Builder;

/**
 * Created by zzz on 2021/1/28 下午11:26
 */
@Builder
public class Milk implements Food {

    private String brand = "";

    @Override
    public void taste() {
        System.out.println(brand + " 牛奶好喝");
    }


    public void setBrand(String brand) {
        this.brand = brand;
    }

}
